NAME := canopen

$(NAME)_MBINS_TYPE := kernel
$(NAME)_VERSION := 1.0.0
$(NAME)_SUMMARY := CANopen stack protocol


#default gcc
ifeq ($(COMPILER),)
$(NAME)_CFLAGS      += -Wall -Werror
$(NAME)_PREBUILT_LIBRARY := lib/$(HOST_ARCH)/gcc/canopen.a
else ifeq ($(COMPILER),gcc)
$(NAME)_CFLAGS      += -Wall -Werror
$(NAME)_PREBUILT_LIBRARY := lib/$(HOST_ARCH)/gcc/canopen.a
else ifeq ($(COMPILER),armcc)
GLOBAL_DEFINES      += __BSD_VISIBLE
GLOBAL_LDFLAGS +=  ../../../../kernel/bus/canopen/canopen/lib/$(HOST_ARCH)/armcc/libcanopen.lib

endif

$(NAME)_INCLUDES     += ./
GLOBAL_DEFINES      += AOS_CANOPEN

